import request from '@/utils/request'

export const loginByPwd = data => request({
  url: '/loginByPwd',
  method: 'post',
  data
})

export const getUserInfoByToken = () => request({
  url: '/getUserInfoByToken',
  method: 'get'
})

export const resetMyPwd = data => request({
  url: '/resetMyPwd',
  method: 'patch',
  data: data || {}
})

export const updateMyInfo = data => request({
  url: '/updateMyInfo',
  method: 'patch',
  data: data || {}
})

export const getCosTempToken = () => request({
  url: '/getCosTempToken',
  method: 'get'
})
